/*
 * Created on Jun 14, 2005
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package gminet.infra.web;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Gabriel Flores Mendes
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class Toolkit {

    /**
     * 
     */
    private Toolkit() {
        super();
    }

    public static String getContextPath(HttpServletRequest request) {

        String path = request.getContextPath();
        if (path.equals("/")) {
            path = "";
        }
        return path;
    }

}
